<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生管理系统主页</title>
</head>
<body>
    <table border="1" align="center" style="text-align: center;">
        <tr>
            <td>编号</td>
            <td>邮箱</td>
            <td>手机号码</td>
            <td>用户名称</td>
        </tr>
        <!-- 数据怎么动态显示呢？ 
         1.list 循环获取数据库数据
         2.在页面上进行循环生成表格
    
        -->   

        <!-- <tr>
            <td>1</td>
            <td>13213@qq.com</td>
            <td>13213</td>
            <td>张三</td>
        </tr>
        <tr>

            <td>2</td>
            <td>13213@qq.com</td>
            <td>13213</td>
            <td>张三</td>
        </tr>
        <tr>
            <td>3</td>
            <td>13213@qq.com</td>
            <td>13213</td>
            <td>张三</td>
        </tr> -->

        <!-- 循环开始 -->
        {% for user in users%}
            <tr>
                <td>{{ user.id}}</td>
                <td>{{ user.user_email}}</td>
                <td>{{ user.user_phone}}</td>
                <td>{{ user.user_name}}</td>
            </tr>
        <!-- 循环结束 -->
        {% endfor %}



    </table>
</body>
</html>